@echo off
echo Starting Phase 4.2 Benchmark Tests...
echo.

echo [1/6] Running DamageCalculatorBenchmark...
call mvn test -Dtest=DamageCalculatorBenchmark > test_results\DamageCalculatorBenchmark.txt 2>&1
findstr /C:"Tests run" /C:"BUILD" test_results\DamageCalculatorBenchmark.txt

echo [2/6] Running AttributeCalculatorBenchmark...
call mvn test -Dtest=AttributeCalculatorBenchmark > test_results\AttributeCalculatorBenchmark.txt 2>&1
findstr /C:"Tests run" /C:"BUILD" test_results\AttributeCalculatorBenchmark.txt

echo [3/6] Running SkillExecutionBenchmark...
call mvn test -Dtest=SkillExecutionBenchmark > test_results\SkillExecutionBenchmark.txt 2>&1
findstr /C:"Tests run" /C:"BUILD" test_results\SkillExecutionBenchmark.txt

echo [4/6] Running AIDecisionBenchmark...
call mvn test -Dtest=AIDecisionBenchmark > test_results\AIDecisionBenchmark.txt 2>&1
findstr /C:"Tests run" /C:"BUILD" test_results\AIDecisionBenchmark.txt

echo [5/6] Running MessageBroadcasterBenchmark...
call mvn test -Dtest=MessageBroadcasterBenchmark > test_results\MessageBroadcasterBenchmark.txt 2>&1
findstr /C:"Tests run" /C:"BUILD" test_results\MessageBroadcasterBenchmark.txt

echo [6/6] Running ConcurrencyBenchmark...
call mvn test -Dtest=ConcurrencyBenchmark > test_results\ConcurrencyBenchmark.txt 2>&1
findstr /C:"Tests run" /C:"BUILD" test_results\ConcurrencyBenchmark.txt

echo.
echo All benchmark tests completed. Check test_results\ folder for detailed output.
pause